package com.tvunetworks.center.device.service;

import com.tvunetworks.center.device.model.DeviceExtra;
import com.tvunetworks.center.device.model.param.SetManualParam;

import java.util.List;
/**
 * @program: tvucc-instance
 * @author lebronchen
 * @create: 2019-02-28 16:53
 **/
public interface DeviceExtraService {
    /**
     *
     * @param peerId peerId
     * @param key key
     * @param value value
     */
    void addDeviceExtra(String peerId, String key, String value);

    /**
     *
     * @param peerId peerId
     * @param key key
     * @return DeviceExtra
     */
    DeviceExtra getDeviceExtra(String peerId, String key);

    /**
     * 设置设备手动/自动
     * @param param param
     */
    void setManual(SetManualParam param);

    /**
     *
     * @param peerId peerId
     * @return boolean
     */
    boolean isDeviceManual(String peerId);

    /**
     *
     * @return List
     */
    List<String> listCacheAutoPeerIds();

    /**
     *
     * @return List
     */
    List<String> listAutoPeerIds();

}
